package demo2;

public class Son extends Father{
    public Son(String name){
        super(name);
    }
    //要对父类方法进行重写


    @Override
    public void eat() {
        System.out.println(this.name + "儿子在吃饭");
    }
}
